Skip to content

Conversation

wbruna
Copy link
Contributor

@wbruna wbruna commented Apr 24, 2025

On img2img, the number of steps correspond to the last precalculated sigma values, but the internal alphas_cumprod and compvis_sigmas were being computed over the entire step range.

Also, tweaks the prev_timestep calculation on DDIM to better match the current timestamp (like on TCD), to avoid inconsistencies due to rounding.

This partially fixes #663 , and seems enough to at least generate coherent images. But low strength generations still produce noisy outputs.

On img2img, the number of steps correspond to the last precalculated sigma
values, but the internal alphas_cumprod and compvis_sigmas were being computed
over the entire step range.

Also, tweaks the prev_timestep calculation on DDIM to better match the current
timestamp (like on TCD), to avoid inconsistencies due to rounding.
@wbruna wbruna force-pushed the fix_ddim_tcd_timesteps branch from 7aa4d93 to 2e0c46a Compare July 26, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

img2img not working with DDIM trailing or TCD
1 participant